package com.dxb.test.lang;

public class Number接口 {
    public static void main(String[] args) {
        System.out.println(Long.toBinaryString(Long.MAX_VALUE));
        print(Long.MAX_VALUE);
        System.out.println(Long.toBinaryString(Long.MIN_VALUE));
        print(Long.MIN_VALUE);
        System.out.println(Integer.toBinaryString(Integer.MAX_VALUE));
        print(Integer.MAX_VALUE);
        System.out.println(Integer.toBinaryString(Integer.MIN_VALUE));
        print(Integer.MIN_VALUE);
        print(Short.MAX_VALUE);
        print(Short.MIN_VALUE);
    }

    public static void print(Number n) {
        System.out.println(n.longValue());
        System.out.println(n.intValue());
        System.out.println(n.shortValue());
    }
}
